deleteRowsAtIndexPaths- crahes application [closed]
Posted
by
Tushar Chutani
on Stack Overflow
See other posts from Stack Overflow
or by Tushar Chutani
Published on 2011-05-24T05:17:49Z
Indexed on
2012/06/26
21:16 UTC
Read the original article
Hit count: 122
(void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath {
if (editingStyle == UITableViewCellEditingStyleDelete) { NSLog(@"delet it"); // Delete the row from the data source. [tableView deleteRowsAtIndexPaths:[NSArray arrayWithObject:indexPath] withRowAnimation:YES];
}
else if (editingStyle == UITableViewCellEditingStyleInsert) { // Create a new instance of the appropriate class, insert it into the array, and add a new row to the table view. }
}
why is this crashing my application
© Stack Overflow or respective owner